package com.eshop.web.controllers.common;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.eshop.frameworks.core.controller.BaseController;
@Controller
@RequestMapping("/error")
public class ErrorController extends BaseController{
	@RequestMapping(value = "/404", method = RequestMethod.GET)
	public ModelAndView personalCard(HttpServletRequest request) {
		ModelAndView mv = new ModelAndView("/error/404.httl");
		setVar(mv);
		return mv;
	}

	@RequestMapping(value = "/500", method = RequestMethod.GET)
	public ModelAndView groupCard(HttpServletRequest request) {
		ModelAndView mv = new ModelAndView("/error/500.httl");
		setVar(mv);
		return mv;
	}
}
